package com.wn.mapper;

import com.wn.ov.MedicalAdviceOv;
import com.wn.pojo.MedicalAdvice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MedicalAdviceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MedicalAdvice record);

    int insertSelective(MedicalAdvice record);

    MedicalAdvice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MedicalAdvice record);

    int updateByPrimaryKey(MedicalAdvice record);

    List<MedicalAdviceOv> selectByPatientId(int patientId);

    int updateStatus(@Param("patientId")Integer patientId);

    //根据医嘱id修改医嘱执行状态
    int updateStatusById(@Param("id") Integer id,@Param("userId") Integer userId);

    List<MedicalAdviceOv> superSearch(String superSearchKeyWord, int patientId);
}